package com.foreknow.demo4;
/**
 * a
 */

import java.util.Scanner;

public class TestMethod5 {
    public static int[] A(int[] array) {
        for (int i = 1; i < array.length; i++) {
            for (int j = 0; j < array.length - i; j++) {
                if (array[j] > array[j + 1]) {
                    int box = array[j];
                    array[j] = array[j + 1];
                    array[j + 1] = box;
                }
            }
        }
        return array;
    }


    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int[] array = new int[10];
        for (int i = 0; i < array.length; i++) {
            array[i] = input.nextInt();
        }
        int[] arr = A(array);
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }
}
